package com.reggie.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

//订单明细表实体类
@Data
@AllArgsConstructor
@NoArgsConstructor
public class OrderDetail {
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;//id主键
    private String name;//名字
    private String image;//图片
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long orderId;//订单id
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long dishId;//菜品id
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long setmealId;//套餐id
    private String dishFlavor;//口味
    private Integer number;//数量
    private Double amount;//金额
}
